package club.lovety.oauth2.config;

import org.springframework.boot.web.servlet.FilterRegistrationBean;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.web.authentication.www.BasicAuthenticationFilter;

@Configuration
public class FilterConfig {

    public FilterRegistrationBean corsFilter(BasicAuthenticationFilter filter) {
        FilterRegistrationBean bean = new FilterRegistrationBean(filter);
        return bean;
    }


}
